package com.jiyun.jiyunmall.member.feign;

import com.jiyun.jiyunmall.common.constant.Constant;
import com.jiyun.jiyunmall.common.page.PageData;
import com.jiyun.jiyunmall.common.utils.Result;
import com.jiyun.jiyunmall.member.dto.CouponDTO;
import com.jiyun.jiyunmall.member.feign.impl.CouponFeignFallback;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value="jiyunmall-coupon",path = "coupon/coupon",fallback = CouponFeignFallback.class)
public interface CouponFeign {
    @GetMapping("page")
    public Result<PageData<CouponDTO>> page( @RequestParam Map<String, Object> params);
}
